<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>图书管理系统</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
    <div class="container">
        <a class="navbar-brand" href="/">图书管理系统</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarNav">
            <ul class="navbar-nav mr-auto">
                <li class="nav-item active">
                    <a class="nav-link" href="/">首页</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/books">图书管理</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/readers">读者管理</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/borrows">借阅管理</a>
                </li>
            </ul>
            <form th:action="@{/logout}" method="post" class="form-inline my-2 my-lg-0">
                <button class="btn btn-outline-light my-2 my-sm-0" type="submit">退出登录</button>
            </form>
        </div>
    </div>
</nav>

<div class="container mt-5">
    <div class="jumbotron">
        <h1 class="display-4">欢迎使用图书管理系统</h1>
        <p class="lead">高效管理图书资源，便捷读者借阅流程</p>
        <hr class="my-4">
        <div class="row">
            <div class="col-md-4">
                <a href="/books" class="btn btn-primary btn-block">图书管理</a>
            </div>
            <div class="col-md-4">
                <a href="/readers" class="btn btn-success btn-block">读者管理</a>
            </div>
            <div class="col-md-4">
                <a href="/borrows" class="btn btn-info btn-block">借阅管理</a>
            </div>
        </div>
    </div>
</div>

<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>